package com.simple.base.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.simple.util.ErrorMessageUtil;
import com.simple.util.common.Constants;
import com.simple.util.object.JFValidationBean;

public abstract class AbstractBaseController {
    protected abstract String getBaseJspPath();
    
    protected String getJspPath(final String pangeName){
        return getBaseJspPath()+"/"+pangeName;
    }
    
	protected List<JFValidationBean> getErrorList(){
    	return ErrorMessageUtil.getErrorList();
    }
	
	protected String getSiteLanguage(final HttpServletRequest request){
		return (String) request.getAttribute(Constants.SITE_LANGUAGE);
	}
}
